package com.dongan.mapper;

import com.dongan.pojo.Menus;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 菜单表 Mapper 接口
 * </p>
 *
 * @author longTao
 * @since 2021-06-15
 */
public interface MenusMapper extends BaseMapper<Menus> {

    /**
     * 根据角色id查询菜单
     *
     * @param id
     * @return
     */
    public List<Menus> queryByRoleId(@Param("id") Long id);
}
